$baseCls: envelope;

.#{$baseCls} {
  height: 198px;
  width: 360px;
  margin: 10px auto;
  border-radius: 8px;
  background-image: url("https://tt642f1292fb1394a001-env-as0wwifwof.tos-cn-beijing.volces.com/envelope_background.png");
  position: relative;

  &-border-row-1,
  &-border-row-2 {
    position: absolute;
    background: repeating-linear-gradient(
      135deg,
      rgba(22, 24, 35, 0.12),
      rgba(22, 24, 35, 0.12) 8px,
      #00000000 8px,
      #00000000 14px,
      rgba(22, 24, 35, 0.12) 14px,
      rgba(22, 24, 35, 0.12) 22px,
      #00000000 22px,
      #00000000 28px
    );
    width: 100%;
    height: 8px;

    &.active {
      background: repeating-linear-gradient(
        135deg,
        #4bafeb,
        #4bafeb 8px,
        #00000000 8px,
        #00000000 14px,
        #efca90 14px,
        #efca90 22px,
        #00000000 22px,
        #00000000 28px
      );
    }
  }

  &-border-row-1 {
    top: 0;
    left: 0;
    border-radius: 8px 8px 0 0;
  }

  &-border-col-1 {
    top: 10px;
    left: 0;
  }

  &-border-col-1,
  &-border-col-2 {
    position: absolute;
    background: repeating-linear-gradient(
      45deg,
      #00000000,
      #00000000 6px,
      rgba(22, 24, 35, 0.12) 6px,
      rgba(22, 24, 35, 0.12) 14px,
      #00000000 14px,
      #00000000 20px,
      rgba(22, 24, 35, 0.12) 20px,
      rgba(22, 24, 35, 0.12) 28px
    );
    width: 8px;
    height: calc(100% - 20px);
    border-radius: 8px;

    &.active {
      background: repeating-linear-gradient(
        45deg,
        #00000000,
        #00000000 6px,
        #efca90 6px,
        #efca90 14px,
        #00000000 14px,
        #00000000 20px,
        #4bafeb 20px,
        #4bafeb 28px
      );
    }
  }

  &-border-row-2 {
    right: 0;
    bottom: 0;
    border-radius: 0 0 8px 8px;
  }

  &-border-col-2 {
    right: 0;
    bottom: 10px;
  }

  &-content {
    position: absolute;
    top: 8px;
    left: 8px;
    box-sizing: border-box;
    border-radius: 8px;
    height: calc(100% - 16px);
    width: calc(100% - 16px);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  &-title,
  &-date {
    font-size: 20px;
    font-weight: 600;
    gap: 6px;
    line-height: 22px;
  }

  &-title.disabled {
    color: rgba($color: #000000, $alpha: 0.3);
  }

  &-date {
    color: rgba($color: #000000, $alpha: 0.3);
    margin-top: 5px;
  }

  &-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-img {
      position: relative;
    }

    &-logo {
      position: absolute;
      right: 0;
      bottom: -5px;
      height: 74px;
      width: 74px;
    }

    &-rect {
      height: 20px;
      width: 155px;
    }

    &-status {
      font-weight: 600;
      color: rgba(22, 24, 35, 0.34);

      &.active {
        color: #ff7629;
      }
    }
  }
}
